#include <sys/time.h>
#include <sys/select.h>
#include <time.h>
#include <stdio.h>

/* 
 * seconds: the seconds; 
 * mseconds: the micro seconds
 */
void set_timer(int seconds, int mseconds) 
{
    struct timeval temp;

    temp.tv_sec = seconds;
    temp.tv_usec = mseconds;

    select(0, NULL, NULL, NULL, &temp);
    printf("timer\n");
}

int main()
{
    int i = 0;

    for (i = 0; i < 100; i++)
        set_timer(1, 0);

    return 0;
}
